import { Layout } from '@fl/utils/routerHelper'

const fitOldRoute: AppRouteRecordRaw = {
    children: [
        // #region 适老化改造申请
        {
            component: () => import('@fl/fit-old-views/apply/index.vue'),
            meta: {
                icon: 'i-clarity:contract-line',
                title: '适老化改造申请',
                isEditable: true,
            },
            name: 'fit-old-apply-index',
            path: 'apply',
        },
        {
            component: () => import('@fl/fit-old-views/apply/detail.vue'),
            meta: {
                activeMenu: '/fit-old/apply',
                hidden: true,
                isEditable: true,
                noTagsView: true,
                title: '适老化改造申请详情',
            },
            name: 'fit-old-apply-show',
            path: 'apply/:id',
        },
        {
            component: () => import('@fl/fit-old-views/apply/add.vue'),
            meta: {
                activeMenu: '/fit-old/apply',
                hidden: true,
                noTagsView: true,
                title: '适老化改造申请---意向登记',
            },
            name: 'fit-old-apply-add',
            path: 'apply/add',
        },
        {
            component: () => import('@fl/fit-old-views/apply/add-recording/add-recording.vue'),
            meta: {
                activeMenu: '/fit-old/apply',
                hidden: true,
                noTagsView: true,
                title: '适老化改造申请--改造补录',
            },
            name: 'fit-old-apply-add-recording',
            path: 'apply/add-recording',
        },
        {
            component: () => import('@fl/fit-old-views/apply/edit/edit.vue'),
            meta: {
                activeMenu: '/fit-old/apply',
                hidden: true,
                noTagsView: true,
                isEditable: true,
                remark: '走流程的时候会编辑',
                title: '适老化改造申请--编辑',
            },
            name: 'fit-old-apply-edit',
            path: 'apply/:id/edit',
        },
        // #endregion 适老化改造申请

        // #region 适老化补贴申请
        {
            component: () => import('@fl/fit-old-views/subsidy/index.vue'),
            meta: {
                icon: 'i-clarity:coin-bag-line',
                isEditable: true,
                title: '适老化补贴申请',
            },
            name: 'fit-old-subsidy-apply',
            path: 'subsidy-apply',
        },
        {
            component: () => import('@fl/fit-old-views/subsidy/detail.vue'),
            meta: {
                activeMenu: '/fit-old/subsidy-apply',
                hidden: true,
                noTagsView: true,
                isEditable: true,
                title: '适老化改造申请--show',
            },
            name: 'fit-old-subsidy-apply-detail',
            path: 'subsidy-apply-detail',
        },
        {
            component: () => import('@fl/fit-old-views/enterprise-winding/audit-index.vue'),
            meta: {
                icon: 'i-clarity:bank-line',
                isEditable: true,
                title: '企业上链',
            },
            name: 'fit-old-enterprise-winding-audit',
            path: 'enterprise-winding-audit',
        },
        {
            component: () => import('@fl/fit-old-views/enterprise-winding/addOrAudit.vue'),
            meta: {
                activeMenu: '/fit-old/enterprise-winding-company',
                hidden: true,
                noTagsView: true,
                isEditable: true,
                title: '企业上链-新增/审批',

            },
            name: 'fit-old-enterprise-winding-company-addOrAudit',
            path: 'enterprise-winding-company/addOrAudit',
        },
        {
            component: () => import('@fl/fit-old-views/enterprise-winding/show.vue'),
            meta: {
                activeMenu: '/fit-old/enterprise-winding-company',
                hidden: true,
                noTagsView: true,
                isEditable: true,
                title: '企业上链-详情',

            },
            name: 'fit-old-enterprise-winding-company-show',
            path: 'enterprise-winding-company/show',
        },
        // #region 适老化政策
        {
            component: () => import('@/pages/fit-old/policy/index.vue'),
            meta: {
                icon: 'i-clarity:scroll-line',
                title: '适老化政策',
            },
            name: 'policy-index',
            path: 'policy',
        },
        {
            component: () => import('@/pages/fit-old/policy/show.vue'),
            meta: {
                activeMenu: '/fit-old/policy',
                hidden: true,
                noTagsView: true,
                title: '政策详情',
            },
            name: 'fit-old-policy-show',
            path: 'policy/:id',
        },
        // #endregion

        // #region 项目管理
        {
            component: () => import('@fl/fit-old-views/project-management/index.vue'),
            meta: {
                icon: 'i-clarity:directory-line',
                isEditable: true,
                title: '适老化项目管理',
            },
            name: 'fit-old-project-management-index',
            path: 'project-management',
        },
        {
            component: () => import('@fl/fit-old-views/project-management/show.vue'),
            meta: {
                activeMenu: '/fit-old/project-management',
                hidden: true,
                isEditable: true,
                noTagsView: true,
                title: '适老化项目管理-show',
            },
            name: 'fit-old-project-management-show',
            path: 'project-management/:id',
        },
        {
            component: () => import('@fl/fit-old-views/project-management/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/project-management',
                hidden: true,
                noTagsView: true,
                title: '适老化项目管理-add',
            },
            name: 'fit-old-project-management-add',
            path: 'project-management/add',
        },
        {
            component: () => import('@fl/fit-old-views/project-management/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/project-management',
                hidden: true,
                noTagsView: true,
                title: '适老化项目管理-edit',
            },
            name: 'fit-old-project-management-edit',
            path: 'project-management/:id/edit',
        },
        // #endregion 项目管理
        // #region 改造项目
        {
            component: () => import('@fl/fit-old-views/product/index.vue'),
            meta: {
                icon: 'i-clarity:paint-roller-line',
                title: '适老化改造项目',
            },
            name: 'fit-old-product-index',
            path: 'product',
        },
        {
            component: () => import('@fl/fit-old-views/product/show.vue'),
            meta: {
                activeMenu: '/fit-old/product',
                hidden: true,
                noTagsView: true,
                title: '适老化改造项目详情',
            },
            name: 'fit-old-product-show',
            path: 'product/:id',
        },
        {
            component: () => import('@fl/fit-old-views/product/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/product',
                hidden: true,
                noTagsView: true,
                title: '适老化改造项目新增',
            },
            name: 'fit-old-product-add',
            path: 'product/add',
        },
        {
            component: () => import('@fl/fit-old-views/product/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/product',
                hidden: true,
                noTagsView: true,
                title: '适老化改造项目编辑',
            },
            name: 'fit-old-product-edit',
            path: 'product/:id/edit',
        },
        // #endregion
        // #region 套餐设置
        {
            component: () => import('@fl/fit-old-views/set-meal/index.vue'),
            meta: {
                icon: 'i-clarity:data-cluster-line',
                title: '适老化套餐设置',
            },
            name: 'fit-old-set-meal-index',
            path: 'set-meal',
        },
        {
            component: () => import('@fl/fit-old-views/set-meal/show.vue'),
            meta: {
                activeMenu: '/fit-old/set-meal',
                hidden: true,
                noTagsView: true,
                title: '适老化套餐详情',
            },
            name: 'fit-old-set-meal-show',
            path: 'set-meal-show/:id',
        },
        {
            component: () => import('@fl/fit-old-views/set-meal/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/set-meal',
                hidden: true,
                noTagsView: true,
                title: '适老化改造项目-add',
            },
            name: 'fit-old-set-meal-add',
            path: 'set-meal/add',
        },
        {
            component: () => import('@fl/fit-old-views/set-meal/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/set-meal',
                hidden: true,
                noTagsView: true,
                title: '适老化改造项目-edit',
            },
            name: 'fit-old-set-meal-edit',
            path: 'set-meal/:id/edit',
        },
        // #endregion 套餐设置
        // #region 物业及施工单位
        {
            component: () => import('@/pages/fit-old/construction-unit/index.vue'),
            meta: {
                icon: 'i-clarity:building-line',
                title: '物业及施工单位',
            },
            name: 'fit-old-construction-unit-index',
            path: 'construction-unit',
        },
        {
            component: () => import('@/pages/fit-old/construction-unit/show.vue'),
            meta: {
                activeMenu: '/fit-old/construction-unit',
                hidden: true,
                noTagsView: true,
                title: '物业及施工单位-show',
            },
            name: 'fit-old-construction-unit-show',
            path: 'construction-unit/:id',
        },
        {
            component: () => import('@/pages/fit-old/construction-unit/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/construction-unit',
                hidden: true,
                noTagsView: true,
                title: '物业及施工单位-add',
            },
            name: 'fit-old-construction-unit-add',
            path: 'construction-unit/add',
        },
        {
            component: () => import('@/pages/fit-old/construction-unit/add-or-edit.vue'),
            meta: {
                activeMenu: '/fit-old/construction-unit',
                hidden: true,
                noTagsView: true,
                title: '物业及施工单位-编辑',
            },
            name: 'fit-old-construction-unit-edit',
            path: 'construction-unit/:id/edit',
        },
        // #endregion
        // #region 合同管理
        {
            component: () => import('@fl/fit-old-views/contract/index.vue'),
            meta: {
                icon: 'i-clarity:file-solid',
                title: '适老化合同管理',
            },
            name: 'contract-index',
            path: 'contract',
        },
        {
            component: () => import('@fl/fit-old-views/contract/show.vue'),
            meta: {
                activeMenu: '/fit-old/contract',
                hidden: true,
                noTagsView: true,
                title: '适老化合同管理查询',
            },
            name: 'contract-show',
            path: 'contract/:id',
        },
        // #endregion

        // #region 统计报表
        {
            component: () => import('@fl/fit-old-views/statistic/index.vue'),
            meta: {
                icon: 'i-material-symbols-light:browse-activity-outline-rounded',
                title: '适老化统计报表',
            },
            name: 'fit-old-statistic-index',
            path: 'statistic',
        },
        // #endregion

        // #region 补贴券管理
        {
            component: () => import('@fl/fit-old-views/subsidy-coupon/receiveList.vue'),
            meta: {
                icon: 'i-material-symbols-light:browse-activity-outline-rounded',
                title: '补贴券领取列表',
            },
            name: 'fit-old-subsidy-coupon-receive',
            path: 'subsidy-coupon/receiveList',
        },
        {
            component: () => import('@fl/fit-old-views/subsidy-coupon/issueList.vue'),
            meta: {
                icon: 'i-material-symbols-light:browse-activity-outline-rounded',
                title: '补贴券发放管理',
            },
            name: 'fit-old-subsidy-coupon-issue',
            path: 'subsidy-coupon/issueList',
        },
        // #endregion


    ],
    component: Layout,
    meta: {
        title: '适老化管理',
    },
    name: 'fit-old',
    path: '/fit-old',
    redirect: '/fit-old/apply',
}

export default fitOldRoute
